//
//  EMLoginNavBarView.m
//  EasyMoney
//
//  Created by 邓乐 on 2020/1/7.
//  Copyright © 2020 zh. All rights reserved.
//

#import "EMLoginNavBarView.h"

@interface EMLoginNavBarView ()


@end

@implementation EMLoginNavBarView

+ (instancetype)navBar
{
    return [[self alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, EMNavBarHeight)];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _closeBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [_closeBtn setBackgroundImage:[UIImage imageNamed:@"close"] forState:UIControlStateNormal];
        [self addSubview:_closeBtn];
        [_closeBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).mas_offset(24);
            make.bottom.equalTo(self);
            make.size.mas_equalTo(CGSizeMake(24, 24));
        }];
    }
    return self;
}

@end
